package javapop.framework;

public class ParseNull extends DefaultParseResult<Object> {
	private static Object nullObject = new Object();
	
	public ParseNull() {
		super(Object.class,nullObject);
	}
		
	@Override
	public boolean checkType() {
		return true;
	}
	
	@Override
	public void checkTypeWithExplanations() throws TypeError {
		// null is well typed
	}
	
	public boolean isNull() {
		return true;
	}
		

}
